package net.yihang.miaosha.domain;

import net.yihang.miaosha.redis.AbstractKey;

public class UserKey extends AbstractKey {

    private UserKey(String key) {
        super(0, key);
    }

    public static UserKey idKey(int id) {
        return new UserKey("User.id:" + id);
    }

    public static UserKey nameKey(String name) {
        return new UserKey("User.name:" + name);
    }

}
